<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Parent Page</title>
    <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
    <meta charset="utf-8">
    <title>Bootstrap 实例 - 倒置的导航栏</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <script language="javascript" type="text/javascript">
        function btnClick1() {
            $("#childframe").attr("src", "index_child_one");
            document.getElementById("childframe").contentWindow;
        }

        function btnClick2() {
            $("#childframe").attr("src", "index_child_tow");
            document.getElementById("childframe").contentWindow;
        }

        function btnClick3() {
            $("#childframe").attr("src", "https://www.baidu.com/");
            document.getElementById("childframe").contentWindow;
        }
    </script>

    <style type="text/css">
        html, body {
            height: 100%;
            width: 100%;
            padding: 0;
            margin: 0;
            text-align: center;
        }
    </style>
</head>
<body>
<div style="width:100%; height:5%;background-color: aqua;">
    <nav class="navbar navbar-inverse" role="navigation">
        <div class="container-fluid">
            <div>
                <ul class="nav navbar-nav">
                    <li>
                        <a href="#">跳转</a>
                    </li>
                    <li class="active">
                        <a href="#" id="child1" value="" onclick="btnClick1()">子页面1</a>
                    </li>
                    <li>
                        <a href="#" id="child2" value="" onclick="btnClick2()">子页面2</a>
                    </li>
                    <li>
                        <a href="#" id="child3" value="" onclick="btnClick3()">百度</a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            Java <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="#">jmeter</a></li>
                            <li><a href="#">EJB</a></li>
                            <li><a href="#">Jasper Report</a></li>
                            <li class="divider"></li>
                            <li><a href="#">分离的链接</a></li>
                            <li class="divider"></li>
                            <li><a href="#">另一个分离的链接</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</div>
<div style="width:100%; height:95%;background-color: #1b6d85">
    <iframe style="width:100%; height:100%;" id="childframe"></iframe>
</div>
</body>
</html>
